import { Application } from 'egg';
export default (app:Application) => {
  const { controller, router } = app;
  // 静态web路径
  router.get('/', controller.home.index);
  router.get('/test', controller.home.test);
  router.get('/personal', controller.presonal.index);
  // API接口
  router.resources('users', '/api/users', controller.api.users);
  router.resources('menus', '/api/menus', controller.api.menus);
};
